<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>tti</title>
</head>
<body>
  <script src="./node_modules/tti-polyfill/tti-polyfill.js"></script>
  <script>
    window.onload = function () {
      console.log('over')
    }
    ttiPolyfill.getFirstConsistentlyInteractive().then((tti) => {
      // Use `tti` value in some way.
      console.log('网页执行时间: ' + tti + 's')
    });
  </script>
</body>
</html>